! function(t, i) {
	"object" == typeof exports && "undefined" != typeof module ? i(exports) : "function" == typeof define && define
		.amd ? define(["exports"], i) : i((t = "undefined" != typeof globalThis ? globalThis : t || self).CODE = {})
}(this, function(t) {
	"use strict";
	var u = function() {
		return (u = Object.assign || function(t) {
			for (var i, r = 1, e = arguments.length; r < e; r++)
				for (var s in i = arguments[r]) Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[
					s]);
			return t
		}).apply(this, arguments)
	};

	function p(t, h, n, a) {
		return new(n = n || Promise)(function(r, i) {
			function e(t) {
				try {
					o(a.next(t))
				} catch (t) {
					i(t)
				}
			}

			function s(t) {
				try {
					o(a.throw(t))
				} catch (t) {
					i(t)
				}
			}

			function o(t) {
				var i;
				t.done ? r(t.value) : ((i = t.value) instanceof n ? i : new n(function(t) {
					t(i)
				})).then(e, s)
			}
			o((a = a.apply(t, h || [])).next())
		})
	}

	function b(r, e) {
		var s, o, h, n = {
				label: 0,
				sent: function() {
					if (1 & h[0]) throw h[1];
					return h[1]
				},
				trys: [],
				ops: []
			},
			t = {
				next: i(0),
				throw: i(1),
				return: i(2)
			};
		return "function" == typeof Symbol && (t[Symbol.iterator] = function() {
			return this
		}), t;

		function i(i) {
			return function(t) {
				return function(i) {
					if (s) throw new TypeError("Generator is already executing.");
					for (; n;) try {
						if (s = 1, o && (h = 2 & i[0] ? o.return : i[0] ? o.throw || ((h = o.return) &&
								h.call(o), 0) : o.next) && !(h = h.call(o, i[1])).done) return h;
						switch (o = 0, (i = h ? [2 & i[0], h.value] : i)[0]) {
							case 0:
							case 1:
								h = i;
								break;
							case 4:
								return n.label++, {
									value: i[1],
									done: !1
								};
							case 5:
								n.label++, o = i[1], i = [0];
								continue;
							case 7:
								i = n.ops.pop(), n.trys.pop();
								continue;
							default:
								if (!(h = 0 < (h = n.trys).length && h[h.length - 1]) && (6 === i[0] ||
										2 === i[0])) {
									n = 0;
									continue
								}
								if (3 === i[0] && (!h || i[1] > h[0] && i[1] < h[3])) {
									n.label = i[1];
									break
								}
								if (6 === i[0] && n.label < h[1]) {
									n.label = h[1], h = i;
									break
								}
								if (h && n.label < h[2]) {
									n.label = h[2], n.ops.push(i);
									break
								}
								h[2] && n.ops.pop(), n.trys.pop();
								continue
						}
						i = e.call(r, n)
					} catch (t) {
						i = [6, t], o = 0
					} finally {
						s = h = 0
					}
					if (5 & i[0]) throw i[1];
					return {
						value: i[0] ? i[1] : void 0,
						done: !0
					}
				}([i, t])
			}
		}
	}

	function n(t, i, r, e) {
		return r = t.createLinearGradient(0, 0, i, r), 1 === e.length && (r.addColorStop(0, e[0]), r.addColorStop(1,
				e[0])), 2 === e.length && (r.addColorStop(0, e[0]), r.addColorStop(1, e[1])), 3 === e.length && (r
				.addColorStop(0, e[0]), r.addColorStop(.5, e[1]), r.addColorStop(1, e[2])), 4 === e.length && (r
				.addColorStop(0, e[0]), r.addColorStop(.35, e[1]), r.addColorStop(.7, e[2]), r.addColorStop(1, e[3])
				), 5 === e.length && (r.addColorStop(0, e[0]), r.addColorStop(.35, e[1]), r.addColorStop(.6, e[2]),
				r.addColorStop(.8, e[3]), r.addColorStop(1, e[4])), 6 === e.length && (r.addColorStop(0, e[0]), r
				.addColorStop(.25, e[1]), r.addColorStop(.45, e[2]), r.addColorStop(.65, e[3]), r.addColorStop(.85,
					e[4]), r.addColorStop(1, e[5])), 7 === e.length && (r.addColorStop(0, e[0]), r.addColorStop(.15,
					e[1]), r.addColorStop(.35, e[2]), r.addColorStop(.45, e[3]), r.addColorStop(.65, e[4]), r
				.addColorStop(.85, e[5]), r.addColorStop(1, e[6])), 8 === e.length && (r.addColorStop(0, e[0]), r
				.addColorStop(.1, e[1]), r.addColorStop(.25, e[2]), r.addColorStop(.45, e[3]), r.addColorStop(.65,
					e[4]), r.addColorStop(.85, e[5]), r.addColorStop(.9, e[6]), r.addColorStop(1, e[7])), 9 === e
			.length && (r.addColorStop(0, e[0]), r.addColorStop(.2, e[1]), r.addColorStop(.3, e[2]), r.addColorStop(
					.5, e[3]), r.addColorStop(.6, e[4]), r.addColorStop(.7, e[5]), r.addColorStop(.8, e[6]), r
				.addColorStop(.9, e[7]), r.addColorStop(1, e[8])), 10 <= e.length && (r.addColorStop(0, e[0]), r
				.addColorStop(.1, e[1]), r.addColorStop(.2, e[2]), r.addColorStop(.3, e[3]), r.addColorStop(.4, e[
					4]), r.addColorStop(.5, e[5]), r.addColorStop(.6, e[6]), r.addColorStop(.7, e[7]), r
				.addColorStop(.85, e[8]), r.addColorStop(1, e[9])), r
	}
	var w = [0, 11, 15, 19, 23, 27, 31, 16, 18, 20, 22, 24, 26, 28, 20, 22, 24, 24, 26, 28, 28, 22, 24, 24, 26, 26,
			28, 28, 24, 24, 26, 26, 26, 28, 28, 24, 26, 26, 26, 28, 28
		],
		m = [3220, 1468, 2713, 1235, 3062, 1890, 2119, 1549, 2344, 2936, 1117, 2583, 1330, 2470, 1667, 2249, 2028,
			3780, 481, 4011, 142, 3098, 831, 3445, 592, 2517, 1776, 2234, 1951, 2827, 1070, 2660, 1345, 3177
		],
		g = [30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 21522, 20773, 24188, 23371, 17913, 16590,
			20375, 19104, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245, 5769, 5054, 7399, 6608, 1890, 597,
			3340, 2107
		],
		k = [1, 0, 19, 7, 1, 0, 16, 10, 1, 0, 13, 13, 1, 0, 9, 17, 1, 0, 34, 10, 1, 0, 28, 16, 1, 0, 22, 22, 1, 0,
			16, 28, 1, 0, 55, 15, 1, 0, 44, 26, 2, 0, 17, 18, 2, 0, 13, 22, 1, 0, 80, 20, 2, 0, 32, 18, 2, 0, 24,
			26, 4, 0, 9, 16, 1, 0, 108, 26, 2, 0, 43, 24, 2, 2, 15, 18, 2, 2, 11, 22, 2, 0, 68, 18, 4, 0, 27, 16, 4,
			0, 19, 24, 4, 0, 15, 28, 2, 0, 78, 20, 4, 0, 31, 18, 2, 4, 14, 18, 4, 1, 13, 26, 2, 0, 97, 24, 2, 2, 38,
			22, 4, 2, 18, 22, 4, 2, 14, 26, 2, 0, 116, 30, 3, 2, 36, 22, 4, 4, 16, 20, 4, 4, 12, 24, 2, 2, 68, 18,
			4, 1, 43, 26, 6, 2, 19, 24, 6, 2, 15, 28, 4, 0, 81, 20, 1, 4, 50, 30, 4, 4, 22, 28, 3, 8, 12, 24, 2, 2,
			92, 24, 6, 2, 36, 22, 4, 6, 20, 26, 7, 4, 14, 28, 4, 0, 107, 26, 8, 1, 37, 22, 8, 4, 20, 24, 12, 4, 11,
			22, 3, 1, 115, 30, 4, 5, 40, 24, 11, 5, 16, 20, 11, 5, 12, 24, 5, 1, 87, 22, 5, 5, 41, 24, 5, 7, 24, 30,
			11, 7, 12, 24, 5, 1, 98, 24, 7, 3, 45, 28, 15, 2, 19, 24, 3, 13, 15, 30, 1, 5, 107, 28, 10, 1, 46, 28,
			1, 15, 22, 28, 2, 17, 14, 28, 5, 1, 120, 30, 9, 4, 43, 26, 17, 1, 22, 28, 2, 19, 14, 28, 3, 4, 113, 28,
			3, 11, 44, 26, 17, 4, 21, 26, 9, 16, 13, 26, 3, 5, 107, 28, 3, 13, 41, 26, 15, 5, 24, 30, 15, 10, 15,
			28, 4, 4, 116, 28, 17, 0, 42, 26, 17, 6, 22, 28, 19, 6, 16, 30, 2, 7, 111, 28, 17, 0, 46, 28, 7, 16, 24,
			30, 34, 0, 13, 24, 4, 5, 121, 30, 4, 14, 47, 28, 11, 14, 24, 30, 16, 14, 15, 30, 6, 4, 117, 30, 6, 14,
			45, 28, 11, 16, 24, 30, 30, 2, 16, 30, 8, 4, 106, 26, 8, 13, 47, 28, 7, 22, 24, 30, 22, 13, 15, 30, 10,
			2, 114, 28, 19, 4, 46, 28, 28, 6, 22, 28, 33, 4, 16, 30, 8, 4, 122, 30, 22, 3, 45, 28, 8, 26, 23, 30,
			12, 28, 15, 30, 3, 10, 117, 30, 3, 23, 45, 28, 4, 31, 24, 30, 11, 31, 15, 30, 7, 7, 116, 30, 21, 7, 45,
			28, 1, 37, 23, 30, 19, 26, 15, 30, 5, 10, 115, 30, 19, 10, 47, 28, 15, 25, 24, 30, 23, 25, 15, 30, 13,
			3, 115, 30, 2, 29, 46, 28, 42, 1, 24, 30, 23, 28, 15, 30, 17, 0, 115, 30, 10, 23, 46, 28, 10, 35, 24,
			30, 19, 35, 15, 30, 17, 1, 115, 30, 14, 21, 46, 28, 29, 19, 24, 30, 11, 46, 15, 30, 13, 6, 115, 30, 14,
			23, 46, 28, 44, 7, 24, 30, 59, 1, 16, 30, 12, 7, 121, 30, 12, 26, 47, 28, 39, 14, 24, 30, 22, 41, 15,
			30, 6, 14, 121, 30, 6, 34, 47, 28, 46, 10, 24, 30, 2, 64, 15, 30, 17, 4, 122, 30, 29, 14, 46, 28, 49,
			10, 24, 30, 24, 46, 15, 30, 4, 18, 122, 30, 13, 32, 46, 28, 48, 14, 24, 30, 42, 32, 15, 30, 20, 4, 117,
			30, 40, 7, 47, 28, 43, 22, 24, 30, 10, 67, 15, 30, 19, 6, 118, 30, 18, 31, 47, 28, 34, 34, 24, 30, 20,
			61, 15, 30
		],
		v = [255, 0, 1, 25, 2, 50, 26, 198, 3, 223, 51, 238, 27, 104, 199, 75, 4, 100, 224, 14, 52, 141, 239, 129,
			28, 193, 105, 248, 200, 8, 76, 113, 5, 138, 101, 47, 225, 36, 15, 33, 53, 147, 142, 218, 240, 18, 130,
			69, 29, 181, 194, 125, 106, 39, 249, 185, 201, 154, 9, 120, 77, 228, 114, 166, 6, 191, 139, 98, 102,
			221, 48, 253, 226, 152, 37, 179, 16, 145, 34, 136, 54, 208, 148, 206, 143, 150, 219, 189, 241, 210, 19,
			92, 131, 56, 70, 64, 30, 66, 182, 163, 195, 72, 126, 110, 107, 58, 40, 84, 250, 133, 186, 61, 202, 94,
			155, 159, 10, 21, 121, 43, 78, 212, 229, 172, 115, 243, 167, 87, 7, 112, 192, 247, 140, 128, 99, 13,
			103, 74, 222, 237, 49, 197, 254, 24, 227, 165, 153, 119, 38, 184, 180, 124, 17, 68, 146, 217, 35, 32,
			137, 46, 55, 63, 209, 91, 149, 188, 207, 205, 144, 135, 151, 178, 220, 252, 190, 97, 242, 86, 211, 171,
			20, 42, 93, 158, 132, 60, 57, 83, 71, 109, 65, 162, 31, 45, 67, 216, 183, 123, 164, 118, 196, 23, 73,
			236, 127, 12, 111, 246, 108, 161, 59, 82, 41, 157, 85, 170, 251, 96, 134, 177, 187, 204, 62, 90, 203,
			89, 95, 176, 156, 169, 160, 81, 11, 245, 22, 235, 122, 117, 44, 215, 79, 174, 213, 233, 230, 231, 173,
			232, 116, 214, 244, 234, 168, 80, 88, 175
		],
		S = [1, 2, 4, 8, 16, 32, 64, 128, 29, 58, 116, 232, 205, 135, 19, 38, 76, 152, 45, 90, 180, 117, 234, 201,
			143, 3, 6, 12, 24, 48, 96, 192, 157, 39, 78, 156, 37, 74, 148, 53, 106, 212, 181, 119, 238, 193, 159,
			35, 70, 140, 5, 10, 20, 40, 80, 160, 93, 186, 105, 210, 185, 111, 222, 161, 95, 190, 97, 194, 153, 47,
			94, 188, 101, 202, 137, 15, 30, 60, 120, 240, 253, 231, 211, 187, 107, 214, 177, 127, 254, 225, 223,
			163, 91, 182, 113, 226, 217, 175, 67, 134, 17, 34, 68, 136, 13, 26, 52, 104, 208, 189, 103, 206, 129,
			31, 62, 124, 248, 237, 199, 147, 59, 118, 236, 197, 151, 51, 102, 204, 133, 23, 46, 92, 184, 109, 218,
			169, 79, 158, 33, 66, 132, 21, 42, 84, 168, 77, 154, 41, 82, 164, 85, 170, 73, 146, 57, 114, 228, 213,
			183, 115, 230, 209, 191, 99, 198, 145, 63, 126, 252, 229, 215, 179, 123, 246, 241, 255, 227, 219, 171,
			75, 150, 49, 98, 196, 149, 55, 110, 220, 165, 87, 174, 65, 130, 25, 50, 100, 200, 141, 7, 14, 28, 56,
			112, 224, 221, 167, 83, 166, 81, 162, 89, 178, 121, 242, 249, 239, 195, 155, 43, 86, 172, 69, 138, 9,
			18, 36, 72, 144, 61, 122, 244, 245, 247, 243, 251, 235, 203, 139, 11, 22, 44, 88, 176, 125, 250, 233,
			207, 131, 27, 54, 108, 216, 173, 71, 142, 0
		],
		C = [
			[2, 1, 2, 2, 2, 2, 0, 0],
			[2, 2, 2, 1, 2, 2, 0, 0],
			[2, 2, 2, 2, 2, 1, 0, 0],
			[1, 2, 1, 2, 2, 3, 0, 0],
			[1, 2, 1, 3, 2, 2, 0, 0],
			[1, 3, 1, 2, 2, 2, 0, 0],
			[1, 2, 2, 2, 1, 3, 0, 0],
			[1, 2, 2, 3, 1, 2, 0, 0],
			[1, 3, 2, 2, 1, 2, 0, 0],
			[2, 2, 1, 2, 1, 3, 0, 0],
			[2, 2, 1, 3, 1, 2, 0, 0],
			[2, 3, 1, 2, 1, 2, 0, 0],
			[1, 1, 2, 2, 3, 2, 0, 0],
			[1, 2, 2, 1, 3, 2, 0, 0],
			[1, 2, 2, 2, 3, 1, 0, 0],
			[1, 1, 3, 2, 2, 2, 0, 0],
			[1, 2, 3, 1, 2, 2, 0, 0],
			[1, 2, 3, 2, 2, 1, 0, 0],
			[2, 2, 3, 2, 1, 1, 0, 0],
			[2, 2, 1, 1, 3, 2, 0, 0],
			[2, 2, 1, 2, 3, 1, 0, 0],
			[2, 1, 3, 2, 1, 2, 0, 0],
			[2, 2, 3, 1, 1, 2, 0, 0],
			[3, 1, 2, 1, 3, 1, 0, 0],
			[3, 1, 1, 2, 2, 2, 0, 0],
			[3, 2, 1, 1, 2, 2, 0, 0],
			[3, 2, 1, 2, 2, 1, 0, 0],
			[3, 1, 2, 2, 1, 2, 0, 0],
			[3, 2, 2, 1, 1, 2, 0, 0],
			[3, 2, 2, 2, 1, 1, 0, 0],
			[2, 1, 2, 1, 2, 3, 0, 0],
			[2, 1, 2, 3, 2, 1, 0, 0],
			[2, 3, 2, 1, 2, 1, 0, 0],
			[1, 1, 1, 3, 2, 3, 0, 0],
			[1, 3, 1, 1, 2, 3, 0, 0],
			[1, 3, 1, 3, 2, 1, 0, 0],
			[1, 1, 2, 3, 1, 3, 0, 0],
			[1, 3, 2, 1, 1, 3, 0, 0],
			[1, 3, 2, 3, 1, 1, 0, 0],
			[2, 1, 1, 3, 1, 3, 0, 0],
			[2, 3, 1, 1, 1, 3, 0, 0],
			[2, 3, 1, 3, 1, 1, 0, 0],
			[1, 1, 2, 1, 3, 3, 0, 0],
			[1, 1, 2, 3, 3, 1, 0, 0],
			[1, 3, 2, 1, 3, 1, 0, 0],
			[1, 1, 3, 1, 2, 3, 0, 0],
			[1, 1, 3, 3, 2, 1, 0, 0],
			[1, 3, 3, 1, 2, 1, 0, 0],
			[3, 1, 3, 1, 2, 1, 0, 0],
			[2, 1, 1, 3, 3, 1, 0, 0],
			[2, 3, 1, 1, 3, 1, 0, 0],
			[2, 1, 3, 1, 1, 3, 0, 0],
			[2, 1, 3, 3, 1, 1, 0, 0],
			[2, 1, 3, 1, 3, 1, 0, 0],
			[3, 1, 1, 1, 2, 3, 0, 0],
			[3, 1, 1, 3, 2, 1, 0, 0],
			[3, 3, 1, 1, 2, 1, 0, 0],
			[3, 1, 2, 1, 1, 3, 0, 0],
			[3, 1, 2, 3, 1, 1, 0, 0],
			[3, 3, 2, 1, 1, 1, 0, 0],
			[3, 1, 4, 1, 1, 1, 0, 0],
			[2, 2, 1, 4, 1, 1, 0, 0],
			[4, 3, 1, 1, 1, 1, 0, 0],
			[1, 1, 1, 2, 2, 4, 0, 0],
			[1, 1, 1, 4, 2, 2, 0, 0],
			[1, 2, 1, 1, 2, 4, 0, 0],
			[1, 2, 1, 4, 2, 1, 0, 0],
			[1, 4, 1, 1, 2, 2, 0, 0],
			[1, 4, 1, 2, 2, 1, 0, 0],
			[1, 1, 2, 2, 1, 4, 0, 0],
			[1, 1, 2, 4, 1, 2, 0, 0],
			[1, 2, 2, 1, 1, 4, 0, 0],
			[1, 2, 2, 4, 1, 1, 0, 0],
			[1, 4, 2, 1, 1, 2, 0, 0],
			[1, 4, 2, 2, 1, 1, 0, 0],
			[2, 4, 1, 2, 1, 1, 0, 0],
			[2, 2, 1, 1, 1, 4, 0, 0],
			[4, 1, 3, 1, 1, 1, 0, 0],
			[2, 4, 1, 1, 1, 2, 0, 0],
			[1, 3, 4, 1, 1, 1, 0, 0],
			[1, 1, 1, 2, 4, 2, 0, 0],
			[1, 2, 1, 1, 4, 2, 0, 0],
			[1, 2, 1, 2, 4, 1, 0, 0],
			[1, 1, 4, 2, 1, 2, 0, 0],
			[1, 2, 4, 1, 1, 2, 0, 0],
			[1, 2, 4, 2, 1, 1, 0, 0],
			[4, 1, 1, 2, 1, 2, 0, 0],
			[4, 2, 1, 1, 1, 2, 0, 0],
			[4, 2, 1, 2, 1, 1, 0, 0],
			[2, 1, 2, 1, 4, 1, 0, 0],
			[2, 1, 4, 1, 2, 1, 0, 0],
			[4, 1, 2, 1, 2, 1, 0, 0],
			[1, 1, 1, 1, 4, 3, 0, 0],
			[1, 1, 1, 3, 4, 1, 0, 0],
			[1, 3, 1, 1, 4, 1, 0, 0],
			[1, 1, 4, 1, 1, 3, 0, 0],
			[1, 1, 4, 3, 1, 1, 0, 0],
			[4, 1, 1, 1, 1, 3, 0, 0],
			[4, 1, 1, 3, 1, 1, 0, 0],
			[1, 1, 3, 1, 4, 1, 0, 0],
			[1, 1, 4, 1, 3, 1, 0, 0],
			[3, 1, 1, 1, 4, 1, 0, 0],
			[4, 1, 1, 1, 3, 1, 0, 0],
			[2, 1, 1, 4, 1, 2, 0, 0],
			[2, 1, 1, 2, 1, 4, 0, 0],
			[2, 1, 1, 2, 3, 2, 0, 0],
			[2, 3, 3, 1, 1, 1, 2, 0]
		],
		y = function(t) {
			return uni.upx2px(Number(t))
		},
		q = function() {
			var t = new Date;
			return t.toLocaleDateString().replace(/\//g, "-") + " " + t.toTimeString().slice(0, 8)
		},
		F = function(t) {
			var r = y(Number(t.width)),
				e = y(Number(t.height));
			return new Promise(function(i) {
				"[object String]" == Object.prototype.toString.call(t.id) ? uni.canvasToTempFilePath({
						canvasId: t.id,
						width: r,
						height: e,
						destWidth: r,
						destHeight: e,
						fileType: t.type || "png",
						quality: t.quality || 1,
						complete: function(t) {
							i(t)
						}
					}, t.ctx) : "[object Object]" == Object.prototype.toString.call(t.id) && t.id
					.toTempFilePath(0, 0, r, e, r, e, t.type || "png", 1, function(t) {
						i(t)
					})
			})
		},
		h = (i.prototype.setmask = function(t, i) {
			var r = null;
			i < t && (r = t, t = i, i = r), r = i, r *= i, r += i, r >>= 1, this.framask[r += t] = 1
		}, i.prototype.getWidth = function() {
			return this.width
		}, i.prototype.putalign = function(t, i) {
			this.qrframe[t + this.width * i] = 1;
			for (var r = -2; r < 2; r++) this.qrframe[t + r + this.width * (i - 2)] = 1, this.qrframe[t - 2 +
				this.width * (i + r + 1)] = 1, this.qrframe[t + 2 + this.width * (i + r)] = 1, this.qrframe[
				t + r + 1 + this.width * (i + 2)] = 1;
			for (r = 0; r < 2; r++) this.setmask(t - 1, i + r), this.setmask(t + 1, i - r), this.setmask(t - r,
				i - 1), this.setmask(t + r, i + 1)
		}, i.prototype.modnn = function(t) {
			for (; 255 <= t;) t = ((t -= 255) >> 8) + (255 & t);
			return t
		}, i.prototype.appendrs = function(t, i, r, e) {
			for (var s, o = 0; o < e; o++) this.strinbuf[r + o] = 0;
			for (o = 0; o < i; o++) {
				if (255 != (s = v[this.strinbuf[t + o] ^ this.strinbuf[r]]))
					for (var h = 1; h < e; h++) this.strinbuf[r + h - 1] = this.strinbuf[r + h] ^ S[this.modnn(
						s + this.genpoly[e - h])];
				else
					for (h = r; h < r + e; h++) this.strinbuf[h] = this.strinbuf[h + 1];
				this.strinbuf[r + e - 1] = 255 == s ? 0 : S[this.modnn(s + this.genpoly[0])]
			}
		}, i.prototype.ismasked = function(t, i) {
			var r;
			return i < t && (r = t, t = i, i = r), r = i, r += i * i, r >>= 1, this.framask[r += t]
		}, i.prototype.badruns = function(t) {
			for (var i = 0, r = 0; r <= t; r++) 5 <= this.rlens[r] && (i += this.N1 + this.rlens[r] - 5);
			for (r = 3; r < t - 1; r += 2) this.rlens[r - 2] == this.rlens[r + 2] && this.rlens[r + 2] == this
				.rlens[r - 1] && this.rlens[r - 1] == this.rlens[r + 1] && 3 * this.rlens[r - 1] == this.rlens[
					r] && (0 == this.rlens[r - 3] || t < r + 3 || 3 * this.rlens[r - 3] >= 4 * this.rlens[r] ||
					3 * this.rlens[r + 3] >= 4 * this.rlens[r]) && (i += this.N3);
			return i
		}, i.prototype.toNum = function(t) {
			return 0 === t ? 1 : 0
		}, i.prototype.applymask = function(t) {
			switch (t) {
				case 0:
					for (var i = 0; i < this.width; i++)
						for (var r = 0; r < this.width; r++) r + i & 1 || this.ismasked(r, i) || (this.qrframe[
							r + i * this.width] ^= 1);
					break;
				case 1:
					for (i = 0; i < this.width; i++)
						for (r = 0; r < this.width; r++) 1 & i || this.ismasked(r, i) || (this.qrframe[r + i *
							this.width] ^= 1);
					break;
				case 2:
					for (i = 0; i < this.width; i++)
						for (var e = 0, r = 0; r < this.width; r++, e++)(e = 3 == e ? 0 : e) || this.ismasked(r,
							i) || (this.qrframe[r + i * this.width] ^= 1);
					break;
				case 3:
					for (var s = 0, i = 0; i < this.width; i++, s++)
						for (e = s = 3 == s ? 0 : s, r = 0; r < this.width; r++, e++)(e = 3 == e ? 0 : e) ||
							this.ismasked(r, i) || (this.qrframe[r + i * this.width] ^= 1);
					break;
				case 4:
					for (i = 0; i < this.width; i++)
						for (e = 0, s = i >> 1 & 1, r = 0; r < this.width; r++, e++)(s = 3 == e ? (e = 0) < s ?
							0 : 1 : s) || this.ismasked(r, i) || (this.qrframe[r + i * this.width] ^= 1);
					break;
				case 5:
					for (s = 0, i = 0; i < this.width; i++, s++) {
						3 == s && (s = 0);
						for (e = 0, r = 0; r < this.width; r++, e++) 3 == e && (e = 0), (r & i & 1) + this
							.toNum(this.toNum(e) | this.toNum(s)) || this.ismasked(r, i) || (this.qrframe[r +
								i * this.width] ^= 1)
					}
					break;
				case 6:
					for (s = 0, i = 0; i < this.width; i++, s++) {
						3 == s && (s = 0);
						for (e = 0, r = 0; r < this.width; r++, e++)(r & i & 1) + ((e = 3 == e ? 0 : e) && (e ==
							s ? 1 : 0)) & 1 || this.ismasked(r, i) || (this.qrframe[r + i * this.width] ^=
							1)
					}
					break;
				case 7:
					for (s = 0, i = 0; i < this.width; i++, s++) {
						3 == s && (s = 0);
						for (e = 0, r = 0; r < this.width; r++, e++)((e = 3 == e ? 0 : e) && (e == s ? 1 : 0)) +
							(r + i & 1) & 1 || this.ismasked(r, i) || (this.qrframe[r + i * this.width] ^= 1)
					}
			}
		}, i.prototype.Genframe = function(t) {
			var i = t.length,
				r = t.slice(0),
				e = 0,
				s = 0,
				o = 0,
				h = 0,
				n = 0,
				a = 0;
			do {
				if (s = 4 * (this.ecclevel - 1) + 16 * (++n - 1), this.neccblk1 = k[s++], this.neccblk2 = k[
					s++], this.datablkw = k[s++], this.eccblkwid = k[s], i <= (s = this.datablkw * (this
						.neccblk1 + this.neccblk2) + this.neccblk2 - 3 + (n <= 9 ? 1 : 0))) break
			} while (n < 40);
			this.width = 17 + 4 * n;
			for (var h = this.datablkw + (this.datablkw + this.eccblkwid) * (this.neccblk1 + this.neccblk2) +
					this.neccblk2, d = 0; d < h; d++) this.eccbuf[d] = 0;
			for (d = 0; d < this.width * this.width; d++) this.qrframe[d] = 0;
			for (d = 0; d < (this.width * (this.width + 1) + 1) / 2; d++) this.framask[d] = 0;
			for (d = 0; d < 3; d++) {
				o = s = 0, 1 == d && (s = this.width - 7), 2 == d && (o = this.width - 7), this.qrframe[o + 3 +
					this.width * (s + 3)] = 1;
				for (var l = 0; l < 6; l++) this.qrframe[o + l + this.width * s] = 1, this.qrframe[o + this
					.width * (s + l + 1)] = 1, this.qrframe[o + 6 + this.width * (s + l)] = 1, this.qrframe[
					o + l + 1 + this.width * (s + 6)] = 1;
				for (l = 1; l < 5; l++) this.setmask(o + l, s + 1), this.setmask(o + 1, s + l + 1), this
					.setmask(o + 5, s + l), this.setmask(o + l + 1, s + 5);
				for (l = 2; l < 4; l++) this.qrframe[o + l + this.width * (s + 2)] = 1, this.qrframe[o + 2 +
						this.width * (s + l + 1)] = 1, this.qrframe[o + 4 + this.width * (s + l)] = 1, this
					.qrframe[o + l + 1 + this.width * (s + 4)] = 1
			}
			if (1 < n)
				for (i = w[n], o = this.width - 7;;) {
					for (e = this.width - 7; i - 3 < e && (this.putalign(e, o), !(e < i));) e -= i;
					if (o <= i + 9) break;
					o -= i, this.putalign(6, o), this.putalign(o, 6)
				}
			this.qrframe[8 + this.width * (this.width - 8)] = 1;
			for (var c = 0; c < 7; c++) this.setmask(7, c), this.setmask(this.width - 8, c), this.setmask(7, c +
				this.width - 7);
			for (l = 0; l < 8; l++) this.setmask(l, 7), this.setmask(l + this.width - 8, 7), this.setmask(l,
				this.width - 8);
			for (l = 0; l < 9; l++) this.setmask(l, 8);
			for (l = 0; l < 8; l++) this.setmask(l + this.width - 8, 8), this.setmask(8, l);
			for (c = 0; c < 7; c++) this.setmask(8, c + this.width - 7);
			for (l = 0; l < this.width - 14; l++) 1 & l ? (this.setmask(8 + l, 6), this.setmask(6, 8 + l)) : (
				this.qrframe[8 + l + 6 * this.width] = 1, this.qrframe[6 + this.width * (8 + l)] = 1);
			if (6 < n)
				for (i = m[n - 7], s = 17, l = 0; l < 6; l++)
					for (c = 0; c < 3; c++, s--) 1 & (11 < s ? n >> s - 12 : i >> s) ? (this.qrframe[5 - l +
						this.width * (2 - c + this.width - 11)] = 1, this.qrframe[2 - c + this.width -
						11 + this.width * (5 - l)] = 1) : (this.setmask(5 - l, 2 - c + this.width - 11),
						this.setmask(2 - c + this.width - 11, 5 - l));
			for (c = 0; c < this.width; c++)
				for (l = 0; l <= c; l++) this.qrframe[l + this.width * c] && this.setmask(l, c);
			h = r.length;
			for (var f = 0; f < h; f++) this.eccbuf[f] = r.charCodeAt(f);
			if (this.strinbuf = this.eccbuf.slice(0), (e = this.datablkw * (this.neccblk1 + this.neccblk2) +
					this.neccblk2) - 2 <= h && (h = e - 2, 9 < n && h--), a = h, 9 < n) {
				for (this.strinbuf[a + 2] = 0, this.strinbuf[a + 3] = 0; a--;) i = this.strinbuf[a], this
					.strinbuf[a + 3] |= 255 & i << 4, this.strinbuf[a + 2] = i >> 4;
				this.strinbuf[2] |= 255 & h << 4, this.strinbuf[1] = h >> 4, this.strinbuf[0] = 64 | h >> 12
			} else {
				for (this.strinbuf[a + 1] = 0, this.strinbuf[a + 2] = 0; a--;) i = this.strinbuf[a], this
					.strinbuf[a + 2] |= 255 & i << 4, this.strinbuf[a + 1] = i >> 4;
				this.strinbuf[1] |= 255 & h << 4, this.strinbuf[0] = 64 | h >> 4
			}
			for (a = h + 3 - (n < 10 ? 1 : 0); a < e;) this.strinbuf[a++] = 236, this.strinbuf[a++] = 17;
			this.genpoly[0] = 1;
			for (f = 0; f < this.eccblkwid; f++) {
				this.genpoly[f + 1] = 1;
				for (var u = f; 0 < u; u--) this.genpoly[u] = this.genpoly[u] ? this.genpoly[u - 1] ^ S[this
					.modnn(v[this.genpoly[u]] + f)] : this.genpoly[u - 1];
				this.genpoly[0] = S[this.modnn(v[this.genpoly[0]] + f)]
			}
			for (f = 0; f <= this.eccblkwid; f++) this.genpoly[f] = v[this.genpoly[f]];
			s = e;
			for (o = 0, f = 0; f < this.neccblk1; f++) this.appendrs(o, this.datablkw, s, this.eccblkwid), o +=
				this.datablkw, s += this.eccblkwid;
			for (f = 0; f < this.neccblk2; f++) this.appendrs(o, this.datablkw + 1, s, this.eccblkwid), o +=
				this.datablkw + 1, s += this.eccblkwid;
			for (f = o = 0; f < this.datablkw; f++) {
				for (u = 0; u < this.neccblk1; u++) this.eccbuf[o++] = this.strinbuf[f + u * this.datablkw];
				for (u = 0; u < this.neccblk2; u++) this.eccbuf[o++] = this.strinbuf[this.neccblk1 * this
					.datablkw + f + u * (this.datablkw + 1)]
			}
			for (u = 0; u < this.neccblk2; u++) this.eccbuf[o++] = this.strinbuf[this.neccblk1 * this.datablkw +
				a + u * (this.datablkw + 1)];
			for (f = 0; f < this.eccblkwid; f++)
				for (u = 0; u < this.neccblk1 + this.neccblk2; u++) this.eccbuf[o++] = this.strinbuf[e + f + u *
					this.eccblkwid];
			this.strinbuf = this.eccbuf, e = o = this.width - 1, s = h = 1;
			for (var p = (this.datablkw + this.eccblkwid) * (this.neccblk1 + this.neccblk2) + this.neccblk2, f =
					0; f < p; f++) {
				i = this.strinbuf[f];
				for (u = 0; u < 8; u++, i <<= 1)
					for (128 & i && (this.qrframe[e + this.width * o] = 1); h ? e-- : (e++, s ? 0 != o ? o-- : (
								s = 0 === s ? 1 : 0, 6 == (e -= 2) && (e--, o = 9)) : o != this.width - 1 ? o++
							: (s = 0 === s ? 1 : 0, 6 == (e -= 2) && (e--, o -= 8))), h = 0 < h ? 0 : 1, this
						.ismasked(e, o););
			}
			this.strinbuf = this.qrframe.slice(0), o = 3e4;
			for (var b = i = 0; b < 8 && (this.applymask(b), (e = this.badcheck()) < o && (o = e, i = b), 7 !=
					i); b++) this.qrframe = this.strinbuf.slice(0);
			i != s && this.applymask(i), o = g[i + (this.ecclevel - 1 << 3)];
			for (b = 0; b < 8; b++, o >>= 1) 1 & o && (this.qrframe[this.width - 1 - b + 8 * this.width] = 1,
				b < 6 ? this.qrframe[8 + this.width * b] = 1 : this.qrframe[8 + this.width * (b + 1)] = 1);
			for (b = 0; b < 7; b++, o >>= 1) 1 & o && (this.qrframe[8 + this.width * (this.width - 7 + b)] = 1,
				b ? this.qrframe[6 - b + 8 * this.width] = 1 : this.qrframe[7 + 8 * this.width] = 1);
			return this.qrframe
		}, i.prototype.badcheck = function() {
			for (var t = 0, i = 0, r = 0, e = 0, s = 0, o = 0, h = 0, n = 0; n < this.width - 1; n++)
				for (var a = 0; a < this.width - 1; a++)(this.qrframe[a + this.width * n] && this.qrframe[a +
					1 + this.width * n] && this.qrframe[a + this.width * (n + 1)] && this.qrframe[a +
					1 + this.width * (n + 1)] || !(this.qrframe[a + this.width * n] || this.qrframe[a +
					1 + this.width * n] || this.qrframe[a + this.width * (n + 1)] || this.qrframe[
					a + 1 + this.width * (n + 1)])) && (t += this.N2);
			for (n = 0; n < this.width; n++) {
				for (r = e = o = this.rlens[0] = 0; o < this.width; o++)(s = this.qrframe[o + this.width *
					n]) == e ? this.rlens[r]++ : this.rlens[++r] = 1, i += (e = s) ? 1 : -1;
				t += this.badruns(r)
			}
			var d = i = i < 0 ? -i : i,
				l = 0;
			for (d += d << 2, d <<= 1; d > this.width * this.width;) d -= this.width * this.width, l++;
			t += l * this.N4;
			for (a = 0; a < this.width; a++) {
				for (r = e = h = this.rlens[0] = 0; h < this.width; h++)(s = this.qrframe[a + this.width *
					h]) == e ? this.rlens[r]++ : this.rlens[++r] = 1, e = s;
				t += this.badruns(r)
			}
			return t
		}, i);

	function i(t) {
		void 0 === t && (t = 4), this.strinbuf = [], this.eccbuf = [], this.qrframe = [], this.framask = [], this
			.rlens = [], this.genpoly = [], this.ecclevel = 4, this.N1 = 3, this.N2 = 3, this.N3 = 40, this.N4 = 10,
			this.neccblk2 = 0, this.width = 0, this.neccblk1 = 0, this.datablkw = 0, this.eccblkwid = 0, this
			.ecclevel = t
	}

	function c(t) {
		return 48 <= t && t <= 57 ? 1 : 32 <= t && t <= 95 ? 2 : t < 32 ? 3 : 4
	}

	function f(t, i) {
		return void 0 === i ? 32 <= t ? t - 32 : t + 64 : parseInt(String.fromCharCode(t) + String.fromCharCode(i))
	}

	function T(t, i) {
		return 1 == (t = r(t)) || (2 == t || (3 == t && 3 == i || 4 == t && 4 == i))
	}

	function s(h, n, t, a) {
		var i = this,
			r = y(n.width),
			e = y(n.height);
		t.setFillStyle(n.bgColor || "#FFFFFF");
		var s = new l(t, r, e);
		n.color ? o(t, r, e, n.color || ["#000000"]) : t.setFillStyle("#000000"), d[n.type || "CODE128"](n.code, s,
			e), t.draw(!1, function(o) {
			return p(i, void 0, void 0, function() {
				var i, r, e, s;
				return b(this, function(t) {
					switch (t.label) {
						case 0:
							return a ? (i = a, r = [u({}, o)], s = {
								createTime: q(),
								takeUpTime: (new Date).getTime() - h
							}, "drawCanvas:ok" != o.errMsg ? [3, 2] : [4, F({
								width: n.width,
								height: n.height,
								id: n.id,
								ctx: n.ctx || null
							})]) : [3, 4];
						case 1:
							return e = t.sent(), [3, 3];
						case 2:
							e = null, t.label = 3;
						case 3:
							return i.apply(void 0, [u.apply(void 0, r.concat([(s.img = e, s
								.code = n.code, s.with = y(n.width),
								s.height = y(n.height), s.id =
								"[object String]" == Object
								.prototype.toString.call(n.id) ? n
								.id : "nvue", s)]))]), [3, 5];
						case 4:
							t.label = 5;
						case 5:
							return [2]
					}
				})
			})
		})
	}
	var r = function(t) {
			return 48 <= t && t <= 57 ? 1 : 32 <= t && t <= 95 ? 2 : t < 32 ? 3 : 4
		},
		x = {
			CHAR_TILDE: 102
		},
		N = function(t) {
			var o = {
					currcs: 5
				},
				i = function(t) {
					for (var i = [], r = 0; r < t.length; r++) i.push(t.charCodeAt(r));
					return i
				}(t),
				r = 126 == i[0] ? 1 : 0,
				e = 0 < i.length ? c(i[r++]) : 2,
				t = 0 < i.length ? c(i[r++]) : 2;
			o.currcs = (r = 0, r += 3 == e ? 1 : 0, r += 4 == e ? -1 : 0, r += 3 == t ? 1 : 0, 0 < (r += 4 == t ? -
				1 : 0) ? 3 : 4), o.currcs = function(t, i) {
				for (var r = 0; r < t.length; r++) {
					var e = t[r];
					if ((e < 48 || 57 < e) && 126 != e) return i
				}
				return 5
			}(i, o.currcs);
			var s = [];
			switch (o.currcs) {
				case 3:
					s.push(103);
					break;
				case 4:
					s.push(104);
					break;
				default:
					s.push(105)
			}
			for (var h = 0; h < i.length; h++) {
				var n = i[h];
				n in x && (s.push(x[n]), n = i[++h]);
				var a = i.length > h + 1 ? i[h + 1] : -1,
					s = s.concat(function(t, i, r) {
						var e = [],
							s = -1;
						if (T(t, r)) 5 == r && (-1 == i ? (s = 100, r = 4) : T(i, r) || (r = T(i, 3) ? (s = 101,
							3) : (s = 100, 4)));
						else if (-1 == i || T(i, r)) s = 98;
						else switch (r) {
							case 3:
								s = 100, r = 4;
								break;
							case 4:
								s = 101, r = 3
						}
						return -1 != s ? (e.push(s), e.push(f(t))) : 5 == r ? e.push(f(t, i)) : e.push(f(t)), o
							.currcs = r, e
					}(n, a, o.currcs));
				5 == o.currcs && h++
			}
			for (var d = s[0], l = 1; l < s.length; l++) d += l * s[l];
			return s.push(d % 103), s.push(106), s
		},
		o = function(t, i, r, e) {
			e = n(t, i, r, e);
			t.setFillStyle(e)
		},
		d = {
			CODE128: function(t, i, r) {
				for (var e = N(t), s = i.area.width / (11 * (e.length - 3) + 35), o = i.area.left, h = i.area
						.top, n = r - i.area.top, a = 0; a < e.length; a++)
					for (var d = e[a], l = 0; l < 8; l += 2) {
						var c = C[d][l] * s,
							f = C[d][l + 1] * s;
						0 < c && i.fillFgRect(o, h, c, n), o += c + f
					}
			},
			CODE39: function(t, i, r) {
				for (var e = N(t), s = i.area.width / (11 * (e.length - 3) + 35), o = i.area.left, h = i.area
						.top, n = r - i.area.top, a = 0; a < e.length; a++)
					for (var d = e[a], l = 0; l < 8; l += 2) {
						var c = C[d][l] * s,
							f = C[d][l + 1] * s;
						0 < c && i.fillFgRect(o, h, c, n), o += c + f
					}
			},
			EAN13: function(t, i, r) {
				-1 !== t.search(/^[0-9]{12}$/) ? console.error("条形码编码类型：EAN暂未实现") : console.error(
					"条形码编码：code不符合EAN13规范")
			},
			UPCE: function(t, i, r) {
				-1 !== t.search(/^[0-9]{6}$/) ? console.error("条形码编码类型：EAN暂未实现") : console.error(
					"条形码编码：code不符合UPCE规范")
			},
			UPC: function(t, i, r) {
				-1 !== t.search(/^[0-9]{1}$/) ? console.error("条形码编码类型：EAN暂未实现") : console.error(
					"条形码编码：code不符合UPC规范")
			},
			ITF: function(t, i, r) {
				-1 !== t.search(/^([0-9]{2})+$/) ? console.error("条形码编码类型：ITF暂未实现") : console.error(
					"条形码编码：code不符合ITF规范")
			},
			ITF14: function(t, i, r) {
				-1 !== t.search(/^[0-9]{14}$/) ? console.error("条形码编码类型：ITF14暂未实现") : console.error(
					"条形码编码：code不符合ITF14规范")
			},
			MSI: function(t, i, r) {
				-1 !== t.search(/^[0-9]+$/) ? console.error("条形码编码类型：MSI暂未实现") : console.error(
					"条形码编码：code不符合MSI规范")
			},
			Codabar: function(t, i, r) {
				-1 !== t.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/) ? console.error("条形码编码类型：Codabar暂未实现") :
					console.error("条形码编码：code不符合Codabar规范")
			},
			Pharmacode: function(t, i, r) {
				!isNaN(parseInt(t, 10)) && 3 <= Number(t) && Number(t) <= 131070 ? console.error(
					"条形码编码类型：Pharmacode暂未实现") : console.error("条形码编码：code不符合Pharmacode类型")
			}
		},
		l = (e.prototype.fillFgRect = function(t, i, r, e) {
			this.FILLRECT(t, i, r, e)
		}, e.prototype.fillBgRect = function(t, i, r, e) {
			this.FILLRECT(t, i, r, e)
		}, e.prototype.FILLRECT = function(t, i, r, e) {
			this.ctx.fillRect(t, i, r, e)
		}, e);

	function e(t, i, r) {
		this.borderSize = 0, this.paddingWidth = 0, this.ctx = t, this.width = i, this.height = r, this.quiet = Math
			.round(this.width / 40), this.area = {
				width: i - 2 * this.paddingWidth - 2 * this.quiet,
				height: r - 2 * this.borderSize,
				top: this.borderSize - 4,
				left: this.borderSize + this.quiet
			}, this.fillBgRect(0, 0, i, r), this.fillBgRect(0, this.borderSize, i, r - 2 * this.borderSize)
	}

	function a(h, n, t, i, r, a) {
		var e = this,
			s = y(n.size),
			o = (y(n.padding || 0) || 0) + (n.border ? n.border.lineWidth || 5 : 0),
			d = Number((s / (r + o)).toFixed(2)),
			l = Math.floor((s - d * r) / 2);
		t.clearRect(0, 0, s, s), t.setFillStyle(n.bgColor || "#FFFFFF"), t.fillRect(0, 0, s, s), n.src && t
			.drawImage(n.src, 0, 0, s, s), n.color ? O(t, s, n.color) : t.setFillStyle("#000000"), n.border && E(t,
				s, n.border);
		for (var c = 0; c < r; c++)
			for (var f = 0; f < r; f++) i[f * r + c] && P[n.type || "none"](t, d * c + l, d * f + l, d, d);
		n.img && (A[(null === (o = n.img) || void 0 === o ? void 0 : o.type) || "none"] ? A[(null === (o = n.img) ||
			void 0 === o ? void 0 : o.type) || "none"](t, s, n.img) : A.none(t, s, n.img)), n.text && R(t, s, n
			.text), t.draw(!1, function(o) {
			return p(e, void 0, void 0, function() {
				var i, r, e, s;
				return b(this, function(t) {
					switch (t.label) {
						case 0:
							return a ? (i = a, r = [u({}, o)], s = {
								createTime: q(),
								takeUpTime: (new Date).getTime() - h
							}, "drawCanvas:ok" != o.errMsg ? [3, 2] : [4, F({
								width: n.size,
								height: n.size,
								id: n.id,
								ctx: n.ctx || null
							})]) : [3, 4];
						case 1:
							return e = t.sent(), [3, 3];
						case 2:
							e = null, t.label = 3;
						case 3:
							return i.apply(void 0, [u.apply(void 0, r.concat([(s.img = e, s
								.code = n.code, s.size = y(n.size),
								s.id = "[object String]" == Object
								.prototype.toString.call(n.id) ? n
								.id : "nvue", s)]))]), [3, 5];
						case 4:
							t.label = 5;
						case 5:
							return [2]
					}
				})
			})
		})
	}

	function I(t, i) {
		var r, e;
		t.code ? t.id ? (e = (new Date).getTime(), "[object String]" == Object.prototype.toString.call(t.id) ? (r =
					uni.createCanvasContext(t.id, t.ctx || null), s(e, t, r, i)) : "[object Object]" == Object
				.prototype.toString.call(t.id) && (r = t.id, s(e, t, r, i))) : console.warn(
			"没有找到条形码canvas id或者实列!") : console.warn("没有找到条形码code")
	}

	function j(t, i) {
		var r, e, s, o;
		t.code ? t.id ? (e = (new Date).getTime(), o = new h(t.level), (s = function(t) {
				for (var i, r = t.toString(), e = "", s = 0; s < r.length; s++) 1 <= (i = r.charCodeAt(
					s)) && i <= 127 ? e += r.charAt(s) : (2047 < i ? (e += String.fromCharCode(224 | i >>
							12 & 15), e += String.fromCharCode(128 | i >> 6 & 63)) : e += String
						.fromCharCode(192 | i >> 6 & 31), e += String.fromCharCode(128 | i >> 0 & 63));
				return e
			}(t.code)) ? (s = o.Genframe(s), o = o.getWidth(), "[object String]" == Object.prototype.toString
				.call(t.id) ? (r = uni.createCanvasContext(t.id, t.ctx || null), a(e, t, r, s, o, i)) :
				"[object Object]" == Object.prototype.toString.call(t.id) && (r = t.id, a(e, t, r, s, o, i))) :
			console.warn("二维码code转换错误")) : console.warn("没有找到二维码canvas id或者实列!") : console.warn("没有找到二维码code")
	}
	var P = {
			none: function(t, i, r, e, s) {
				t.fillRect(i, r, e, s)
			},
			starry: function(t, i, r, e, s) {
				t.drawImage("", i, r, e, s)
			},
			dots: function(t, i, r, e, s) {
				t.drawImage("", i, r, e, s)
			},
			custom: function(t, i, r, e, s) {
				t.drawImage("", i, r, e, s)
			}
		},
		O = function(t, i, r) {
			r = n(t, i, i, r);
			t.setFillStyle(r)
		},
		A = {
			none: function(t, i, r) {
				var e = (null == r ? void 0 : r.size) || 30,
					i = Number(((i - e) / 2).toFixed(2));
				t.save(), t.drawImage(r.src, i, i, e, e)
			},
			circle: function(t, i, r) {
				var e = r.size || 30,
					s = 2 * e,
					o = i / 2 - e,
					h = i / 2 - e,
					n = o + e,
					i = h + e;
				t.save(), t.beginPath(), t.arc(n, i, e, 0, 2 * Math.PI), t.closePath(), t.setLineWidth(r
					.width || 5), t.setStrokeStyle(r.color || "#FFFFFF"), t.stroke(), t.clip(), t.drawImage(
					r.src, o, h, s, s)
			},
			round: function(t, i, r) {
				var e = r.degree || 5,
					s = r.size || 30,
					o = s,
					h = s,
					n = i / 2 - s / 2,
					s = i / 2 - s / 2;
				h < 2 * (e = o < 2 * e ? o / 2 : e) && (e = h / 2), t.save(), t.beginPath(), t.moveTo(n + e, s),
					t.arcTo(n + o, s, n + o, s + h, e), t.arcTo(n + o, s + h, n, s + h, e), t.arcTo(n, s + h, n,
						s, e), t.arcTo(n, s, n + o, s, e), t.closePath(), t.setLineWidth(r.width || 5), t
					.setStrokeStyle(r.color || "#FFFFFF"), t.stroke(), t.clip(), t.drawImage(r.src, n, s, o, o)
			}
		},
		E = function(t, i, r) {
			var e = (null == r ? void 0 : r.color) || ["#000000"],
				s = (null == r ? void 0 : r.degree) || 5,
				o = i,
				h = i,
				e = n(t, i, i, e);
			t.save(), t.setGlobalAlpha((null == r ? void 0 : r.opacity) || 1), t.beginPath(), t.moveTo(0 + s, 0), t
				.arcTo(0 + o, 0, 0 + o, 0 + h, s), t.arcTo(0 + o, 0 + h, 0, 0 + h, s), t.arcTo(0, 0 + h, 0, 0, s), t
				.arcTo(0, 0, 0 + o, 0, s), t.closePath(), t.restore(), t.setLineWidth((null == r ? void 0 : r
					.lineWidth) || 5), t.setStrokeStyle(e), t.stroke(), t.clip(), t.setGlobalAlpha(1)
		},
		R = function(t, i, r) {
			var e = r.color || ["#FFFFFF"],
				e = n(t, i, i, e);
			t.restore(), t.setGlobalAlpha((null == r ? void 0 : r.opacity) || 1), t.setTextAlign("center"), t
				.setTextBaseline("middle"), t.font = (null == r ? void 0 : r.font) || "normal 20px system-ui", t
				.setFillStyle(e), t.fillText(r.content, i / 2, i / 2), t.setGlobalAlpha(1)
		},
		z = F;
	t.BarCode = I, t.GetCodeImg = z, t.QRCode = j, Object.defineProperty(t, "__esModule", {
		value: !0
	})
});
